-
Notifications
You must be signed in to change notification settings - Fork 157
Add port for NETX use #427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request adds support for NETX by introducing NETX-specific macros, new fields in the SocketContext, and backend functions for handling socket operations via NETX. It also adds conditional compilation to allow external MQTT TLS callback implementations.
- Added NETX configuration and macro definitions in mqttport.h.
- Extended SocketContext with NETX fields and implemented NETX backend functions in mqttnet.c.
- Adjusted compilation conditionals for MQTT TLS in mqttexample.h and mqttexample.c.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
examples/mqttport.h | Added NETX-specific include and macro definitions. |
examples/mqttnet.h | Extended SocketContext with NETX-related members. |
examples/mqttnet.c | Introduced NETX backend functions (disconnect, connect, write, read) and adjusted socket initialization. |
examples/mqttexample.h | Added conditional exclusion based on EXTERNAL_MQTT_TLS_CALLBACK. |
examples/mqttexample.c | Modified TLS callback conditional compilation. |
I noticed an issue with handling socket timeout cases with this port. Adding a commit to fix it then reassigning back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I will add an issue to create a GH workflow to build test with NETX.
Adds example port for NETX use and adds the macro EXTERNAL_MQTT_TLS_CALLBACK for compiling out the example TLS callback function.